package disease

import (
	"gorm.io/datatypes"
	"time"
)

type UserDiseaseHistory struct {
	ID           uint           `json:"id" gorm:"primarykey;column:id"`
	CreatedAt    time.Time      `json:"created_at" gorm:"column:created_at"`
	UpdatedAt    time.Time      `json:"updated_at" gorm:"column:updated_at"`
	Current      string         `json:"current" gorm:"column:current"`
	CImg         datatypes.JSON `json:"c_img" gorm:"column:c_img;type:json;comment:图片(现病史);"`
	CMeasure     string         `json:"c_measure" gorm:"column:c_measure"`
	CMeasureImg  datatypes.JSON `json:"c_measure_img" gorm:"column:c_measure_img;type:json;comment:正在采取的措施图片(现病史);"`
	CDrugInfo    string         `json:"c_drug_info" gorm:"column:c_drug_info"`
	CDrugInfoImg datatypes.JSON `json:"c_drug_info_img" gorm:"column:c_drug_info_img"`
	Past         string         `json:"past" gorm:"column:past"`
	PImg         datatypes.JSON `json:"p_img" gorm:"column:p_img;type:json;comment:图片(过往病史);"`
	PMeasure     string         `json:"p_measure" gorm:"column:p_measure"`
	PMeasureImg  datatypes.JSON `json:"p_measure_img" gorm:"column:p_measure_img;type:json;comment:正在采取的措施图片(过往病史);"`
	PDrugInfo    string         `json:"p_drug_info" gorm:"column:p_drug_info"`
	PDrugInfoImg datatypes.JSON `json:"p_drug_info_img" gorm:"column:p_drug_info_img"`
}

// TableName UserDiseaseHistory 用户病史表
func (UserDiseaseHistory) TableName() string {
	return "fd_user_disease_history"
}
